#include "CPolygon.h"
#include "CRectangle.h"
#include "CTriangle.h"
#include <conio.h>
int main(){
	CRectangle rect;
	CTriangle trgl;
	CPolygon *ppoly1 = &rect;
	CPolygon *ppoly2 = &trgl;
	ppoly1->setValues(4,5);
	ppoly2->setValues(4,5);
	cout<<ppoly1->area()<<endl;
	cout<<ppoly2->area()<<endl;
	_getch();
	return 0;
}